package com.ruiysoft.service.sys.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruiysoft.controller.sys.res.UserShopResponse;
import com.ruiysoft.entity.sys.SysUserShopRelation;
import com.ruiysoft.mapper.sys.SysUserShopRelationMapper;
import com.ruiysoft.service.sys.ISysUserShopRelationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huazengguang
 * @since 2018-12-29
 */
@Service
public class SysUserShopRelationServiceImpl extends ServiceImpl<SysUserShopRelationMapper, SysUserShopRelation> implements ISysUserShopRelationService {

    @Resource
    SysUserShopRelationMapper sysUserShopRelationMapper;

    @Override
    public void insertIgnore(SysUserShopRelation sysUserShopRelation) {
        sysUserShopRelationMapper.insertIgnore(sysUserShopRelation);
    }

    @Override
    public List<UserShopResponse> selectUserShopInfoByIds(Long[] ids) {
        return sysUserShopRelationMapper.selectUserShopInfoByIds(ids);
    }

    @Override
    public SysUserShopRelation selectUserShopRelationByUserId(Long userId) {
        return null;
    }
}
